Ext.namespace('GBIF.GeoSpatial');

GBIF.GeoSpatial.MapPanel = function(config){

	var map = new OpenLayers.Map();
    var wmsLayer = new OpenLayers.Layer.WMS(
        "vmap0",
        "http://labs.metacarta.com/wms/vmap0",
        {layers: 'basic'}
    );
	var vecLayer = new OpenLayers.Layer.Vector("vector");
    map.addLayers([wmsLayer, vecLayer]);
	
	Ext.apply(this,config,{
			title: "Map"
        ,	region: "center"
        ,	height: 400
        ,	width: 600
        ,	map: map
        ,	center: new OpenLayers.LonLat(5, 45)
        ,	zoom: 6
	})
	GBIF.GeoSpatial.MapPanel.superclass.constructor.call(this, config)
}
Ext.extend(GBIF.GeoSpatial.MapPanel, GeoExt.MapPanel, {
	
})
